<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学校事务</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', Arial, sans-serif;
        }
        body {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f5f7fa;
        }
        .container {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 30px;
            margin-bottom: 30px;
        }
        h1 {
            color: #2c3e50;
            margin-bottom: 25px;
            border-bottom: 2px solid #3498db;
            padding-bottom: 10px;
        }
        .upload-section {
            margin-bottom: 30px;
        }
        .upload-btn {
            display: inline-block;
            padding: 12px 24px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            transition: background 0.3s;
        }
        .upload-btn:hover {
            background-color: #2980b9;
        }
        #fileInput {
            display: none;
        }
        .tips {
            color: #7f8c8d;
            margin: 10px 0;
            font-size: 14px;
        }
        .result-section {
            margin-top: 30px;
        }
        .result-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        h2 {
            color: #34495e;
            font-size: 18px;
        }
        .action-btns {
            display: flex;
            gap: 10px;
        }
        .action-btn {
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.3s;
        }
        .download-btn {
            background-color: #2ecc71;
            color: white;
        }
        .download-btn:hover {
            background-color: #27ae60;
        }
        .save-btn {
            background-color: #f39c12;
            color: white;
        }
        .save-btn:hover {
            background-color: #e67e22;
        }
        .clear-btn {
            background-color: #e74c3c;
            color: white;
        }
        .clear-btn:hover {
            background-color: #c0392b;
        }
        #jsonResult {
            width: 100%;
            min-height: 300px;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-family: 'Consolas', monospace;
            font-size: 14px;
            resize: vertical;
            background-color: #f9f9f9;
            white-space: pre-wrap;
            word-break: break-all;
        }
        .column-info {
            background-color: #f0f7ff;
            padding: 10px 15px;
            border-radius: 4px;
            margin: 15px 0;
            font-size: 14px;
        }
        .column-info strong {
            color: #3498db;
        }
        .error {
            color: #e74c3c;
            margin-top: 10px;
            font-size: 14px;
        }
        .success {
            color: #27ae60;
            margin-top: 10px;
            font-size: 14px;
        }
        textarea {
            outline: none;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>--目录--</h1>
        
        <!-- 上传区域 -->
        <div class="upload-section">
            <a class="upload-btn action-btn">
                选择 Excel 文件上传
            </a>
            <a class="action-btn download-btn" href="/dzzx/rankno.html" target="_blank">座位编号</a>
            <a class="action-btn save-btn" href="/dzzx/scoreclass/upload.html" target="_blank">上传成绩分析</a>
            <a class="action-btn clear-btn" href="">清空结果</a>
        </div>
        
        <!-- 结果展示区域 -->
        <div class="result-section">
            <div class="result-header">
                <h2>JSON 解析结果</h2>
            </div>
            <textarea id="jsonResult" readonly placeholder="解析后的 JSON 将显示在这里..."></textarea>
        </div>
    </div>
</body>
</html>